package com.cl.mypureframe.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @Class: MsgMod
 * @Description: MsgMod实体类
 * @Author: ChenLei
 * @Date: 2020/11/20---16:25
 */
public class MsgMod {
    private String id;
    private String title;
    private String msg;
    private String picurl;
    private int type;

    public MsgMod() {
    }

    public MsgMod(String id, String title, String msg, String picurl, int type) {
        this.id = id;
        this.title = title;
        this.msg = msg;
        this.picurl = picurl;
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public static List<MsgMod> testDatas(int size) {
        List<MsgMod> list = new ArrayList<>();
        for (int i = 0; i < size; i++) {
            MsgMod msgMod = new MsgMod();
            msgMod.setTitle("title" + i);
            msgMod.setMsg("desc_msg" + i);
            msgMod.setPicurl("https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1169056792,2656381410&fm=26&gp=0.jpg");
            list.add(msgMod);
        }
        return list;
    }

    public static List<MsgMod> functionalMoudule() {
        List<MsgMod> list = new ArrayList<>();

        MsgMod msgMod = getMsgMod("点击选择头像", "可以选择相册或者拍照",
                "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3790034832,2705828409&fm=26&gp=0.jpg");
        msgMod.setType(1);
        list.add(msgMod);

        list.add(getMsgMod("Show EmptyView", "展示空布局",
                "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=225907330,2776194908&fm=26&gp=0.jpg"));

        list.add(getMsgMod("LoginActivity", "登录",
                "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1870074426,3314766649&fm=26&gp=0.jpg"));

        list.add(getMsgMod("ListActivity", "标准刷新列表",
                "http://www.taskcity.com/files/0016/5147/y_Assigntask.png"));

        list.add(getMsgMod("PicSelectorActivity", "图片选择与展示",
                "https://imgo.shouyouzhijia.net/img2019/6/28/2019062893714832.jpg"));

        list.add(getMsgMod("DownloadActivity", "下载文件",
                "https://img9.51tietu.net/pic/2019-091002/rpnjjfseoumrpnjjfseoum.jpg"));

        return list;
    }

    public static MsgMod getMsgMod(String title, String msg, String picurl) {
        return new MsgMod(null, title, msg, picurl, 0);
    }

}
